 <?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

use Illuminate\Support\Facades\Route;
use \App\Modules\Seller\Http\Middleware\SellerCheckAuth;

 Route::prefix("seller")->group(function() {


    Route::get('login_config', 'SystemController@loginConfig');
     Route::get('getServerStatus', 'IndexController@getServerStatus');
     // Auth
     Route::prefix('auth')->group(function() {
         Route::post('login', 'AuthController@login');
         Route::post('me', 'AuthController@me')->middleware(SellerCheckAuth::class);
         Route::post('logout', 'AuthController@logout')->middleware(SellerCheckAuth::class);
         Route::post('getRabcList', 'AuthController@getRabcList')->middleware(SellerCheckAuth::class);
     });




});
